package com.central.scheduler.dao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.central.db.mapper.SuperMapper;
import com.central.scheduler.dao.model.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Tindy
 * @date 2021/11/5
 * @describe
 * scheduler mapper interface
 */
@Mapper
public interface ScheduleMapper extends SuperMapper<Schedule> {

    /**
     * query schedule list by process definition code
     * @param processDefinitionCode processDefinitionCode
     * @return schedule
     */
    Schedule queryByProcessDefinitionCode(@Param("processDefinitionCode") long processDefinitionCode);

    /**
     * query schedule list by process definition code
     * @param processDefinitionCode processDefinitionCode
     * @return schedule list
     */
    List<Schedule> queryReleaseSchedulerListByProcessDefinitionCode(@Param("processDefinitionCode") long processDefinitionCode);

}
